package config

type Config struct {
	Debug        bool      `toml:"debug"`
	MaxGoroutine uint32    `toml:"max_goroutine"`
	Path         string    `toml:"path"`
	SqlConfig    SqlConfig `toml:"sql_config"`
	OssConfig    OssConfig `toml:"oss_config"`
}

type OssConfig struct {
	Endpoint        string `toml:"endpoint"`
	AccessKeyId     string `toml:"accessKeyId"`
	AccessKeySecret string `toml:"accessKeySecret"`
	BucketName      string `toml:"bucketName"`
}

type SqlConfig struct {
	DataBase  string `toml:"data_base"`
	Host      string `toml:"host"`
	User      string `toml:"user"`
	PassWord  string `toml:"pass_word"`
	Port      int16  `toml:"port"`
	TableName string `toml:"table_name"`
	ColName   string `toml:"col_name"`
	ColUrl    string `toml:"col_url"`
}

var MyConfig *Config
